package com.dhcc.core.modules.system.entity;

import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.core.framework.base.entity.BaseEntity;

/**
 * 权限主体和资源关联表
 * 
 * @ClassName: Permission
 * @Description: TODO
 * @author: cyf
 * @date: 2018年1月2日 上午10:36:38
 */
@TableName("sys_permission")
public class Permission extends BaseEntity<Permission> {

    private static final long serialVersionUID = 1L;
    /**
     * 资源id
     */
    private Long resourceId;
    /**
     * 角色id
     */
    private Long principalId;
    /**
     * 主体类型
     */
    private Integer principalType;

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public Long getPrincipalId() {
        return principalId;
    }

    public void setPrincipalId(Long principalId) {
        this.principalId = principalId;
    }

    public Integer getPrincipalType() {
        return principalType;
    }

    public void setPrincipalType(Integer principalType) {
        this.principalType = principalType;
    }

}
